<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:panelGroup rendered="#{empty userc.userb.user.id}" >
        <h:form id="form_login">
            <h:panelGrid columns="3">
                <h:outputLabel for="email" value="E-mail" />
                <h:outputLabel for="password" value="Senha:" />
                <h:outputLabel />
                
                <h:inputText id="email" value="#{userc.userb.user.email}" />
                <h:inputSecret id="password" value="#{userc.userb.user.password}" />
                
                <h:commandButton value="Entrar" action="#{userc.login}" actionListener="#{feedc.lastestProducts}" />
                
                <h:link value="Cadastre-se" outcome="/system/user/register" />
                <h:link value="Esqueceu sua senha ?" outcome="/system/user/password/forgot-password" />
                <h:outputLabel  />

                <h:message id="m_email" for="email" errorClass="errorMessage" />
                <h:message id="m_password" for="password" errorClass="errorMessage" />
                <h:outputLabel  />
            </h:panelGrid>
            
            <ui:include src="/resources/jsf/component/composition/system/popup.xhtml" />
        </h:form>
    </h:panelGroup>


</ui:composition>		